From: Sebastian Keller Date: Tue, 19 Jan 2021 20:12:49 +0000 (+0100) Subject: automountManager: Remove unused volume queue X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~579 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=353483b052288fd89dea7a8b9e965c0ebec72144;p=gnome-shell.git automountManager: Remove unused volume queue This is some leftover from code that was used to keep track of volumes added/removed while the screen was locked before the move to a components system in 2a800e4c. All that the remaining code does is filter devices from an empty list. Part-of: --- diff --git a/js/ui/components/automountManager.js b/js/ui/components/automountManager.js index e50ae8e1d..5f0a8aad5 100644 --- a/js/ui/components/automountManager.js +++ b/js/ui/components/automountManager.js @@ -19,7 +19,6 @@ var AUTORUN_EXPIRE_TIMEOUT_SECS = 10; var AutomountManager = class { constructor() { this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA }); - this._volumeQueue = []; this._activeOperations = new Map(); this._session = new GnomeSession.SessionManager(); this._session.connectSignal('InhibitorAdded', @@ -220,8 +219,6 @@ var AutomountManager = class { GLib.source_remove(volume._allowAutorunExpireId); delete volume._allowAutorunExpireId; } - this._volumeQueue = - this._volumeQueue.filter(element => element != volume); } _reaskPassword(volume) {